/*
 * @Author: 邱狮杰
 * @Date: 2021-05-15 10:52:30
 * @LastEditTime : 2021-05-19 09:54:48
 * @FilePath     : /wedding-dress-selection/src/components/select/index.tsx
 * @Description: 选择
 */
import { CSSProperties, FC, MouseEvent } from 'react'
import './index.scss'

type Props = {
  style?: CSSProperties
  content?: string
  arrowImg: string
  onProxyClick?: (e: MouseEvent<HTMLDivElement, globalThis.MouseEvent>) => void
}

const Select: FC<Props> = ({ style, arrowImg, onProxyClick, content }) => {
  return (
    <div onClick={onProxyClick} style={style} className='select'>
      {content || '婚礼'}
      <img src={arrowImg} alt='选择' />
    </div>
  )
}
export default Select
